<? require_once $_SERVER["DOCUMENT_ROOT"]."/frostcore/system_header.php";

$header = $MAIN->site->template_path."/header.php";
if(file_exists($header)){
    require_once $header;
}else{
    Logger::error("header not found");
}